package com.ledong.se.string;

public class TestContinue {
    //TODO 测试这个代码
    public static void main(String[] args) {

        StringBuffer sb = new StringBuffer();
        String strList[] = { "a", "b", "c", "d", "", "", "" };
//        for( int i = strList.length; ) {}
        
        for (int i = 0; i < strList.length - 1; i++) {
            if (!"".equals(strList[i])) {
                continue;
            }
            sb.append(strList[i]);
            if (i != strList.length - 1) {
                sb.append(",");
            }
        }
        strList = sb.toString().split(",");
        
        for (String string : strList) {
            System.out.println(string);
        }
    }

}
